<#include "/inc/macro.ftl"/>
<#assign freeMarkerMethod = "com.auto.code.util.FreeMarkerMethod"?new()/>

<table class="table table-hover table-mail text-center">
    <thead>
    <tr>
        <th class="check-mail"><input type="checkbox" class="i-checks select-all-js"></th>
        <th>模板名称</th>
        <th>路径</th>
        <th>文件名称</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    </thead>

    <tbody>
    <#if pageInfo?? && pageInfo.list?? && pageInfo.list?size gt 0>
    <#list pageInfo.list as item>
    <tr class="" id="${item.id!''}">
        <td class="check-mail">
            <input type="checkbox" class="i-checks select-single-js">
        </td>
        <td>${item.name!''}</td>
        <td>${item.path!''}</td>
        <td class="">${item.fileName!''}</td>

        <#if item.status == 1>
            <td class="text-navy">已启动</td>
        <#else>
            <td class="text-warning">已禁用</td>
        </#if>
        <td class="">
            <a href="/auto/code/template/detail?id=${item.id!''}">查看</a>
            <a href="/auto/code/template/modify?id=${item.id!''}">修改</a>
        </td>
    </tr>
    </#list>
    <#else>
      <tr><td colspan="6">暂无数据。</td><tr>
    </#if>
    </tbody>
</table>
<#if pageInfo??>
    <@pageNation data = pageInfo />
</#if>